package com.kevin.learn.leetcode;

import org.apache.commons.lang3.StringUtils;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class ExcelDemo {
    public static void main(String[] args) throws ParseException {
        //        ExcelReader reader = ExcelUtil.getReader("C:/Users/admin_bn/Desktop/职位分类导入模板.xls");
        //        List<List<Object>> readAll = reader.read();
        //        List<ExcelBean> all = reader.readAll(ExcelBean.class);
        //        System.out.println(readAll);
        //        System.out.println(all);

    }

    /**
     * 利用正则表达式判断字符串是否是数字 [0-9]*
     */
    public static boolean isNumeric(String str, String format) {
        Pattern pattern = Pattern.compile(format);
        Matcher isNum = pattern.matcher(str);
        if (!isNum.matches()) {
            return false;
        }
        return true;
    }

}
